#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <opencv.hpp>
#include <QTcpSocket>
#include <QTimer>

using namespace cv;
using namespace  std;
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    //timer envent
    void timerEvent(QTimerEvent *e);
public slots:
    void timer_connect();
    void stop_connect();
    void start_connect();

private:
    Ui::MainWindow *ui;
    //carema
    VideoCapture cap;
    //haar --jilian
    cv::CascadeClassifier cascade;
    //create socket,timer
    QTcpSocket msocket;
    QTimer mtimer;
};
#endif // MAINWINDOW_H
